package com.ggk911.pharmacy_system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 药品信息
 * @author ggk-911
 * @version 1.0 2023/3/9 12:11
 */
@TableName("drug_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugInfo implements Serializable {
    @Excel(name = "药品ID", width = 20)
    @TableId(value = "drug_info_id", type = IdType.AUTO)
    private Integer drugInfoId;
    @Excel(name = "药品名称")
    private String drugInfoName;
    @Excel(name = "药品别名")
    private String drugInfoAlias;
    @Excel(name = "药品类型ID")
    private Integer drugInfoTypeId;
    @Excel(name = "强度")
    private String drugInfoStrength;
    @Excel(name = "适应症")
    private String drugInfoIndications;
    @Excel(name = "不良反应")
    private String drugInfoAdverseReactions;
    @Excel(name = "相互作用")
    private String drugInfoInteractions;
    @Excel(name = "剂量")
    private String drugInfoDosage;
    @Excel(name = "规格")
    private String drugInfoSpecifications;
    @Excel(name = "仓储方式")
    private String drugInfoStorageMethod;
    @Excel(name = "有效时间")
    private Integer drugInfoValidTime;
    @Excel(name = "制造商")
    private String drugInfoManufacturer;
    @Excel(name = "国家药品代码")
    private String drugInfoNationalCode;
    @Excel(name = "批准文号")
    private String drugInfoApprovalNo;
    @Excel(name = "上市许可持有人")
    private String drugInfoListingLicenseHolder;

    @ExcelIgnore
    @TableField(exist = false)
    private DrugInfoType drugInfoType;

    @ExcelIgnore
    @TableField(exist = false)
    private DrugPrice drugPrice;
}
